package org.litespring.context.support;

import org.litespring.beans.factory.support.DefaultBeanFactory;
import org.litespring.core.io.ClassPathResource;
import org.litespring.core.io.FileSystemResource;
import org.litespring.core.io.Resource;

/**
 * Create by leonardo on 2018/8/26
 */
public class ClassPathXmlApplicationContext extends AbstractApplicationContext{

    private DefaultBeanFactory factory = null;

    //封装读取配置文件过程
    public ClassPathXmlApplicationContext(String configFile) {
        super(configFile);
    }

    //
    protected Resource getResourceByPath(String path) {
        return new ClassPathResource(path);
    }

}
